import axios from 'axios'

const service = axios.create({
    baseURL: 'http://localhost:8080'
})

// request 拦截器
service.interceptors.request.use(
    (config) => {
        config.headers['Content-Type'] = 'application/json'
        return config
    },
)

export default service